import $axios from '@/utils/axios'

export default {
  //获取主题列表
  themeList(): Promise<CommonObjectType<string>> {
    return $axios.get('dm/api/theme/list')
  },
  //指标数据列表
  metricDataList(params?: object): Promise<CommonObjectType<string>> {
    return $axios.post('dm/api/metric/data/list', params)
  },
  //指标定义列表
  metricDefineList(params?: object): Promise<CommonObjectType<string>> {
    return $axios.post('dm/api/metric/define/list', params)
  },
   //主要产业指标
   mainIndustryMeasure(params?: object): Promise<CommonObjectType<string>> {
    return $axios.get('dm/api/metric/home/main-industry-measure', params)
  },
   //营业收入
   optIncome(params?: object): Promise<CommonObjectType<string>> {
    return $axios.get('dm/api/metric/home/opt-income', params)
  },
  //利润总额
  TotalProfit(params?: object): Promise<CommonObjectType<string>> {
    return $axios.get('dm/api/metric/home/total-profit', params)
  },
   //发电量和净利润
   powerRetainedProfits(params?: object): Promise<CommonObjectType<string>> {
    return $axios.get('dm/api/metric/home/power-gen-retained-profits', params)
  },
   //指标定义列表
   expensesOptCosts(params?: object): Promise<CommonObjectType<string>> {
    return $axios.get('dm/api/metric/home/total-expenses-opt-costs', params)
  },
}
